﻿
@{
    Layout = null;
}

<!DOCTYPE html>
<html>
<head>
    <title>用后台代码在word文档中插入分页符</title>
</head>
<body>
    <script type="text/javascript">
        function Save() {
            var saveUrl = "/InsertPageBreak2/SaveDoc";
            pageofficectrl.SaveFilePage = saveUrl;
            pageofficectrl.WebSave();
            if (pageofficectrl.CustomSaveResult == "ok") {
                alert("保存成功！\n请在 wwwroot/InsertPageBreak2/doc 目录下查看合并后的新文档\"test3.doc\"。");
            }
        }

        function OnPageOfficeCtrlInit() {
            pageofficectrl.AddCustomToolButton("保存", "Save", 1);
        }

    </script>
    <div style=" width:auto; height:900px;">
        @Html.Raw(ViewBag.poCtrl)
    </div>
</body>
</html>
